// samsting : this file is auto create.

#include "Ecs/2014-05-26/DescribeInstanceTypesResponse.h"

namespace aliyun { namespace Ecs {

DescribeInstanceTypesResponse::DescribeInstanceTypesResponse() {
}

const string& DescribeInstanceTypesResponse::InstanceType::GetInstanceTypeId(void) const {
  return InstanceTypeId_;
}

int DescribeInstanceTypesResponse::InstanceType::GetCpuCoreCount(void) const {
  return CpuCoreCount_;
}

float DescribeInstanceTypesResponse::InstanceType::GetMemorySize(void) const {
  return MemorySize_;
}

const std::vector<DescribeInstanceTypesResponse::InstanceType>& DescribeInstanceTypesResponse::GetInstanceTypes(void) const {
  return InstanceTypes_;
}

const char* DescribeInstanceTypesResponse::BaseKey(void) {
  return "DescribeInstanceTypesResponse";
}

void DescribeInstanceTypesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int InstanceTypes__length = 0;
  UnmarshallerInt(InstanceTypes__length, response_map, "DescribeInstanceTypesResponse.InstanceTypes.Length");
  if(InstanceTypes__length >= 0) {
    InstanceTypes_.resize(InstanceTypes__length);
    for(int i1 = 0; i1 < InstanceTypes__length; i1++) {
      UnmarshallerString(InstanceTypes_[i1].InstanceTypeId_, response_map, "DescribeInstanceTypesResponse.InstanceTypes["+string_ValueOfInt(i1)+"].InstanceTypeId");
      UnmarshallerInt(InstanceTypes_[i1].CpuCoreCount_, response_map, "DescribeInstanceTypesResponse.InstanceTypes["+string_ValueOfInt(i1)+"].CpuCoreCount");
      UnmarshallerFloat(InstanceTypes_[i1].MemorySize_, response_map, "DescribeInstanceTypesResponse.InstanceTypes["+string_ValueOfInt(i1)+"].MemorySize");
    } // for(int i1 = 0; i1 < InstanceTypes__length; i1++) {
  } // if(InstanceTypes__length >= 0) {

}


} } // namespace aliyun { namespace Ecs {

// end of file 
